<!DOCTYPE html>

<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>AJAX</title>
    <style>
        .wrapper {
            width: 80%;
            padding: 10px;
            border: 1px solid blue;
            margin: 15px auto;
        }
    </style>
</head>
<body>

    <div class="wrapper">
        <a href="analyse.html">解析XMLHttpRequest</a>
    </div>
    <script defer src="xml-http-request.js"></script>
    <div class="wrapper buttons xml-http-request">
        <button class="xhr-get">GET</button>
        <button class="xhr-post">POST</button>
        <button class="xhr-put">PUT</button>
        <button class="xhr-delete">DELETE</button>
        <button class="xhr-head">HEAD</button>
    </div>

    <div class="wrapper result"></div>

    <script defer src="fetch.js"></script>
    <div class="wrapper buttons fetch-api">
        <button class="fetch-get">GET</button>
        <button class="fetch-post">POST</button>
        <button class="fetch-put">PUT</button>
        <button class="fetch-delete">DELETE</button>
        <button class="fetch-head">HEAD</button>
    </div>
</body>
</html>